<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MolTK C++ API: moltk::units::Unit&lt; D &gt; Struct Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="moltk55.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MolTK C++ API
   &#160;<span id="projectnumber">0.4.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacemoltk.html">moltk</a>      </li>
      <li class="navelem"><a class="el" href="namespacemoltk_1_1units.html">units</a>      </li>
      <li class="navelem"><a class="el" href="structmoltk_1_1units_1_1Unit.html">Unit</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">moltk::units::Unit&lt; D &gt; Struct Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="moltk::units::Unit" -->
<p><a class="el" href="structmoltk_1_1units_1_1Unit.html" title="Unit represents a unit of measure, such as gram, nanometer, or second.">Unit</a> represents a unit of measure, such as gram, nanometer, or second.  
 <a href="structmoltk_1_1units_1_1Unit.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="units_8hpp_source.html">units.hpp</a>&gt;</code></p>

<p><a href="structmoltk_1_1units_1_1Unit-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmoltk_1_1units_1_1Unit.html#a4e4e24eb5e9a5d43321305d915c538f9">DimensionType</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structmoltk_1_1units_1_1Unit.html">Unit</a>&lt; D &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmoltk_1_1units_1_1Unit.html#af24ff59360262fa4ea03af8d6d20f0c3">ThisType</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structmoltk_1_1units_1_1Unit.html">Unit</a>&lt; typename <br class="typebreak"/>
DimensionType::SquareType &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmoltk_1_1units_1_1Unit.html#a11d0f74ab1654292bf50a66aced07fa5">SquareType</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structmoltk_1_1units_1_1Unit.html">Unit</a>&lt; typename <br class="typebreak"/>
DimensionType::SquareRootType &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmoltk_1_1units_1_1Unit.html#aec3622514f1535f0ff7eef06d83c0de1">SquareRootType</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmoltk_1_1units_1_1Unit.html#a88ec42b34496c01e0ae6df3c922f1057">write_name</a> (std::ostream &amp;os)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmoltk_1_1units_1_1Unit.html#a68524ad9bdc45519443137aacec15e24">write_symbol</a> (std::ostream &amp;os)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="structmoltk_1_1units_1_1Unit.html#af24ff59360262fa4ea03af8d6d20f0c3">ThisType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmoltk_1_1units_1_1Unit.html#a826fc8257f93873c15845a01e465dfc3">get_instance</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class D&gt;<br/>
struct moltk::units::Unit&lt; D &gt;</h3>

<p><a class="el" href="structmoltk_1_1units_1_1Unit.html" title="Unit represents a unit of measure, such as gram, nanometer, or second.">Unit</a> represents a unit of measure, such as gram, nanometer, or second. </p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a4e4e24eb5e9a5d43321305d915c538f9"></a><!-- doxytag: member="moltk::units::Unit::DimensionType" ref="a4e4e24eb5e9a5d43321305d915c538f9" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class D&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef D <a class="el" href="structmoltk_1_1units_1_1Unit.html">moltk::units::Unit</a>&lt; D &gt;::<a class="el" href="structmoltk_1_1units_1_1Unit.html#a4e4e24eb5e9a5d43321305d915c538f9">DimensionType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aec3622514f1535f0ff7eef06d83c0de1"></a><!-- doxytag: member="moltk::units::Unit::SquareRootType" ref="aec3622514f1535f0ff7eef06d83c0de1" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class D&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structmoltk_1_1units_1_1Unit.html">Unit</a>&lt;typename DimensionType::SquareRootType&gt; <a class="el" href="structmoltk_1_1units_1_1Unit.html">moltk::units::Unit</a>&lt; D &gt;::<a class="el" href="structmoltk_1_1units_1_1Unit.html#aec3622514f1535f0ff7eef06d83c0de1">SquareRootType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a11d0f74ab1654292bf50a66aced07fa5"></a><!-- doxytag: member="moltk::units::Unit::SquareType" ref="a11d0f74ab1654292bf50a66aced07fa5" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class D&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structmoltk_1_1units_1_1Unit.html">Unit</a>&lt;typename DimensionType::SquareType&gt; <a class="el" href="structmoltk_1_1units_1_1Unit.html">moltk::units::Unit</a>&lt; D &gt;::<a class="el" href="structmoltk_1_1units_1_1Unit.html#a11d0f74ab1654292bf50a66aced07fa5">SquareType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af24ff59360262fa4ea03af8d6d20f0c3"></a><!-- doxytag: member="moltk::units::Unit::ThisType" ref="af24ff59360262fa4ea03af8d6d20f0c3" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class D&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structmoltk_1_1units_1_1Unit.html">Unit</a>&lt;D&gt; <a class="el" href="structmoltk_1_1units_1_1Unit.html">moltk::units::Unit</a>&lt; D &gt;::<a class="el" href="structmoltk_1_1units_1_1Unit.html#af24ff59360262fa4ea03af8d6d20f0c3">ThisType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a826fc8257f93873c15845a01e465dfc3"></a><!-- doxytag: member="moltk::units::Unit::get_instance" ref="a826fc8257f93873c15845a01e465dfc3" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class D&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="structmoltk_1_1units_1_1Unit.html#af24ff59360262fa4ea03af8d6d20f0c3">ThisType</a>&amp; <a class="el" href="structmoltk_1_1units_1_1Unit.html">moltk::units::Unit</a>&lt; D &gt;::get_instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a88ec42b34496c01e0ae6df3c922f1057"></a><!-- doxytag: member="moltk::units::Unit::write_name" ref="a88ec42b34496c01e0ae6df3c922f1057" args="(std::ostream &amp;os)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class D&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="structmoltk_1_1units_1_1Unit.html">moltk::units::Unit</a>&lt; D &gt;::write_name </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a68524ad9bdc45519443137aacec15e24"></a><!-- doxytag: member="moltk::units::Unit::write_symbol" ref="a68524ad9bdc45519443137aacec15e24" args="(std::ostream &amp;os)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class D&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="structmoltk_1_1units_1_1Unit.html">moltk::units::Unit</a>&lt; D &gt;::write_symbol </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>moltk/<a class="el" href="units_8hpp_source.html">units.hpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
